package com.xyzwps.server.paimon.ui.mvc

import com.xyzwps.server.paimon.app.HelloAppService
import com.xyzwps.server.paimon.ui.HttpResponse
import com.xyzwps.server.paimon.ui.view.HelloView
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@Tag(name = "Hello")
@RestController
@RequestMapping(Apis.BASE + "/hello")
class HelloController(private val helloAppService: HelloAppService) {

    @GetMapping
    fun hello(): HttpResponse<HelloView> {
        return HttpResponse(helloAppService.hello())
    }
}
